function Human_NonPart_Test()

database_path{1} =   'NonPart';

part_num      =   3;    
%region_xy = [1 1 64 40; 1 32 64 64; 1 64 64 128]; % INRIA ????
region_xy = [1 20 64 48; 1 40 64 64; 1 64 64 108]; % ??part??????
cluster_num   =   3;
scale_factor  =   2;
unary_factor  =   0.1;
namehead      =   'human_non_part';
verbose       =   1;

region_xy     =   round(region_xy*scale_factor);



pos     =   get_test_files(database_path{1}, 'bmp');
siz     =   size(imread(pos(1).im))*scale_factor;
part_mask   =   zeros([siz(1:2) ]);

part_mask(:) =  1;
% no mask
% for partID  = 1:part_num
%     bb      =   region_xy(partID,:);
%     part_mask(bb(2):bb(4), bb(1):bb(3), partID) =  1;
% end

numImage    =   length(pos);    % number of training images
I           =   cell(1, numImage); 


appdix = sprintf('sketch./%s',namehead);
    
    for n=1:numImage
        pos_patch     =   imread(pos(n).im);
        if size(pos_patch,3)>1, pos_patch  =   rgb2gray(pos_patch);  end;
        pos_patch     =   imresize(pos_patch, scale_factor, 'bilinear');

        I{n}       =   single(pos_patch);
    end
    
    part_mask_sample    =   repmat(part_mask, [1 1 numImage]);

    basis_shift  =  learn_sketch(I, part_mask_sample, appdix,60); 
    
    
    
function test = get_test_files(floderName, formation)
    test = [];
    files = dir([floderName '/*.' formation]);
    for i =1:length(files)
        test(i).im = [floderName '/' files(i).name];
    end